package day06.KeJianLianXi;
//String转换为int
public class IntegerDemo01 {
    public static void main(String[] args) {
        //定义一个字符串类型的变量
        String s = "100";
        Integer i = Integer.valueOf(s);
        int x = i.intValue();
        System.out.println(x);


        int y = Integer.parseInt(s);
        System.out.println(y);
    }
}
